<?php

	session_start();
	
	if($_SESSION['TypeUserLogged'] == "Candidato"){
		
		unset($_SESSION['TypeUserLogged']);
		unset($_SESSION['UserLogged']);
		unset($_SESSION['NameUserLogged']);
		unset($_SESSION['ProfessionalArea']);
		
	}else{
			
		unset($_SESSION['TypeUserLogged']);
		unset($_SESSION['UserLogged']);
		unset($_SESSION['NameUserLogged']);
		unset($_SESSION['BusinessLogged']);
		unset($_SESSION['IdBusinessLogged']);
	
	}
			
	header("location: ../home");
	
?>